<?php
  /**
  * Product Videos Manager
  * @author: trungdt
  * @since: Oct 26, 2011
  * @version: 1.0
  * 
  *  
  * Change logs
  */
  if (!defined('EXPONENT')) exit('');
  
  // Administrator access restrict
  if (exponent_users_isAdmin() || exponent_permissions_check(array('administrate', "configure", "create", "edit"),$loc))
  {
	
	
	exponent_flow_set(SYS_FLOW_PROTECTED,SYS_FLOW_ACTION);
	$template=new template("videomodule","_Video_Manager",$loc);
	$template->register_permissions(array('administrate', "configure", "create", "edit"),$loc);
	$template->output();
    
    exponent_sessions_set("AB_THEME_TOP_CONTAINER_SRC","top_loginmodule_".LANG);
    exponent_sessions_set("AB_THEME_TOP_CONTAINER_TYPE","textmodule");
  }
  else
  {
	  echo exponent_http_error(403);
  }
?>
